package com.im.entity;

import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;

/**
 * 敏感词实体
 *
 * @author xainsir
 * @since 2025-02-14
 */
@Data
@Schema(description = "敏感词实体")
@TableName("im_sensitive_word")
public class ImSensitiveWord implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "雪花ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "敏感词ID 自增")
    @TableField("word")
    private Integer wordId;

    @Schema(description = "敏感词")
    @TableField("word")
    private String word;

    @Schema(description = "敏感词添加时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime; // 自动填充

    @Schema(description = "敏感词更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime; // 自动填充
}
